package by.myteam.library.storage.st;

import java.util.ArrayList;
import java.util.List;

import by.myteam.library.bo.Book;
import by.myteam.library.storage.IStorageProvider;

public class StaticStorageProvider implements IStorageProvider {

	@Override
	public List<Book> getListBooks() {
		List<Book> books = new ArrayList<Book>();
		for (int i = 0; i < 20; i++) {
			Book book = new Book();
			book.setId(Long.valueOf(i));
			book.setAuthorName("Author " + i);
			book.setBookName("Book " + i);
			book.setYear(1989 + i);
			books.add(book);
		}
		return books;
	}

	@Override
	public String getName() {
		return "Static Storage";
	}

	@Override
	public void addBook(Book book) {
		// TODO Auto-generated method stub
		System.out.println("add book static");
	}

	@Override
	public void removeBook(Book book) {
		// TODO Auto-generated method stub
		
	}
	
}
